/*
 * ========================================================
 * Copyright(c) 2014 杭州偶尔科技-版权所有
 * ========================================================
 * 本软件由杭州偶尔科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * 
 * 			http://www.kkkd.com/
 * 
 * ========================================================
 */
package com.simon.mengkou.data.bean.base;


import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import com.ouertech.android.agm.lib.base.bean.BaseBean;
import com.simon.mengkou.data.db.ColumnHelper.UserColumns;

/**
 * @author : Zhenshui.Xia
 * @date : 2014年8月11日
 * @desc : 用户信息
 */
@DatabaseTable(tableName="user")
public class User extends BaseBean {
	private static final long serialVersionUID = 1L;

	//用户ID
	@DatabaseField(id=true, columnName= UserColumns.USERID)
	private String id;
	//用户等级
	@DatabaseField(columnName= UserColumns.LEVEL)
	private int level;
	//用户类型
	@DatabaseField(columnName=UserColumns.TYPE)
	private int type;
	//昵称
	@DatabaseField(columnName=UserColumns.NICK)
	private String nick;
	//头像
	@DatabaseField(columnName=UserColumns.AVATAR)
	private String avatarUrl;
	//别名
	@DatabaseField(columnName=UserColumns.ALIAS)
	private String alias;
	//用户绑定手机号码(只针对PHONE)
	@DatabaseField(columnName=UserColumns.PHONE)
	private String phone;
	//个人签名
	@DatabaseField(columnName=UserColumns.SIGNATURE)
	private String signature;
	//经度
	@DatabaseField(columnName=UserColumns.LONGITUDE)
	private double longitude;
	//维度
	@DatabaseField(columnName=UserColumns.LATITUDE)
	private double latitude;
	//详细地址
	@DatabaseField(columnName=UserColumns.LOCATION)
	private String location;
	//关注数
	@DatabaseField(columnName=UserColumns.FOLLOWCOUNT)
	private int followCount;
	//粉丝数
	@DatabaseField(columnName=UserColumns.FANSCOUNT)
	private int fansCount;
	//话题数
	@DatabaseField(columnName=UserColumns.TOPICCOUNT)
	private int topicNum;
	//	当前登录用户点击我关注的人,默认都为True
	//	点击其他用户 关注的人
	//	True：我关注了对方
	//	False：我没关注对方
	@DatabaseField(columnName=UserColumns.INTERESTED)
	private boolean interested;
	//对方是否关注了我
	//	True：对方关注了我
	//	False：对方没关注我
	@DatabaseField(columnName=UserColumns.BEINTERESTED)
	private boolean beInterested;
	//积分
	@DatabaseField(columnName=UserColumns.SCORE)
	private long integral;

	//性别
	@DatabaseField(columnName=UserColumns.SEX)
	private int sex;
	//年龄
	@DatabaseField(columnName=UserColumns.AGE)
	private int age;
	//是否为当前登录用户
	private boolean self;
	//默认地址
	private Address address;

	private String sortId;
	//时间
	private long createAt;
	//年龄
	@DatabaseField(columnName=UserColumns.INVITATIONCODE)
	private String invitationCode;

	private NiudanAccount niudanAccount;

	public String getUserId() {
		return id;
	}

	public void setUserId(String userId) {
		this.id = userId;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatar) {
		this.avatarUrl = avatar;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public int getFollowCount() {
		return followCount;
	}

	public void setFollowCount(int followCount) {
		this.followCount = followCount;
	}

	public int getFansCount() {
		return fansCount;
	}

	public void setFansCount(int fansCount) {
		this.fansCount = fansCount;
	}

	public int getTopicNum() {
		return topicNum;
	}

	public void setTopicNum(int topicCount) {
		this.topicNum = topicCount;
	}

	public boolean getInterested() {
		return interested;
	}

	public void setInterested(boolean interested) {
		this.interested = interested;
	}

	public boolean getBeInterested() {
		return beInterested;
	}

	public void setBeInterested(boolean beInterested) {
		this.beInterested = beInterested;
	}

	public long getCreatedAt() {
		return createAt;
	}

	public void setCreatedAt(long createdAt) {
		this.createAt = createdAt;
	}

	public String getInvitationCode() {
		return invitationCode;
	}

	public void setInvitationCode(String invitationCode) {
		this.invitationCode = invitationCode;
	}

	public NiudanAccount getNiudanAccount() {
		return niudanAccount;
	}

	public void setNiudanAccount(NiudanAccount niudanAccount) {
		this.niudanAccount = niudanAccount;
	}

	public long getIntegral() {
		return integral;
	}

	public void setIntegral(long integral) {
		this.integral = integral;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public boolean isSelf() {
		return self;
	}

	public void setSelf(boolean self) {
		this.self = self;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public String getSortId() {
		return sortId;
	}

	public void setSortId(String sortId) {
		this.sortId = sortId;
	}
}
